<!--h_right -->
<div class="content-r">
<div class="rightsidebar">
	<div class="rightsidebar-header">
	    <span><a href="javascript:void(0)" onclick="Friends.addGroupFrom()">添加分组</a></span>好友分组
	</div>
	<div class="rightsidebar-content">
		<ul class="rightsidebar-navul">
			<li <?if ($this->group===''):?>class="rightsidebar-current-nav"<?endif;?>><a href="<?=self::_makeURL('friends', 'group', 'get_list')?>">全部好友(<?=$this->allUserNums?>) </a></li>
			<?foreach ($this->allUserGroups as $i=>$row):?>
			<li <?if ($this->group==$row['group_id']):?>class="rightsidebar-current-nav"<?endif;?>>
	            <div class="rightsidebar-manabar">
					<a href="javascript:void(0)" class="del-classify" title="删除分组" onclick="Friends.delGroupFrom('<?= $row['group_id']?>')"></a>
					<a href="javascript:void(0)" class="modity-classify" title="修改分组" onclick="Friends.editGroupFrom('<?= $row['group_id']?>', '<?=$row['group_name']?>')"></a>
				</div>
	            <a href="<?= Controller::_makeURL('friends', 'group', 'get_list', array('group' => $row['group_id']))?>"><?=htmlspecialchars($row['group_name']);?>(<?=$row['group_nums']?>)</a>
           	</li>
    		<?endforeach;?>
			<li <?if ($this->group=='0'):?>class="rightsidebar-current-nav"<?endif;?>><a href="<?=Controller::_makeURL('friends', 'group', 'get_list', array('group' => 0))?>">未分组好友(<?=$this->noGroupUserNums?>)</a></li>
		</ul>
	</div>
</div>
</div> <!--end content-r -->
